package com.mhy.book.app;

import com.mhy.book.service.BookService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class BeanAutowiredMain {
    public static void main(String[] args) {
        ApplicationContext ioc = new ClassPathXmlApplicationContext("bean_autowire.xml");

        BookService bookService = ioc.getBean("bookService", BookService.class);

        bookService.queryBook();
    }





}
